package com.clj.cloud.web.entity.po;

import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.Date;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

@Data
public class BasePo implements Serializable {
	 /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public final static String DEFAULT_USERNAME = "system";
	    @TableId(type = IdType.ID_WORKER_STR)
	    private String id;
	    private String createdBy = DEFAULT_USERNAME;
	    private String updatedBy = DEFAULT_USERNAME;
	    private Date createdTime = Date.from(ZonedDateTime.now().toInstant());
	    private Date updatedTime = Date.from(ZonedDateTime.now().toInstant());
}
